/**
 * 系统初始化
 */
import defaultSettings from 'lxsh-cer-web-pc/src/settings'
import store from 'hhlt-vue/src/store'
import { objectUtils } from 'hhlt-core/utils'

// const { showSettings, tagsView, fixedHeader, isShowLogo, supportPinyinSearch,title,showLogoType,layoutIndex} = defaultSettings

export default {

    //main.js 引入
    install(app:any){

        Object.keys(defaultSettings).forEach(key => {
            
            const settingItem = objectUtils.prop(defaultSettings,key)

            store.dispatch('settings/changeSetting',{
                key: key,
                value: settingItem
                })
        })
    }
}